package icu.sehnen.fitness.service;

import icu.sehnen.fitness.entity.Permission;
import icu.sehnen.fitness.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 后台用户表 服务类
 * </p>
 *
 * @author sehnen
 * @since 2021-04-27
 */
public interface IUserService extends IService<User> {

    User getUserByName(String name);

    List<Permission> getPermissionsByUserId(Long id);
     String login(User user);

}
